import { RouteDefinition } from "@solidjs/router";
import { lazy } from "solid-js";
import Projects from "../settings/pages/Projects";

export const routes: RouteDefinition[] = [
    {
        path: "/",
        component: () => <Projects />,
    },
    {
        path: "/scripts",
        component: lazy(() => import("../settings/pages/Scripts")),
    },
    {
        path: "/options",
        component: lazy(() => import("../settings/pages/Options")),
    },
    {
        path: "/editor",
        component: lazy(() => import("../settings/pages/Editor")),
    },
    {
        path: '*404',
        component: lazy(() => import("../settings/pages/NotFound")),
    }
]